package map;

import org.junit.Test;

import java.util.HashMap;
import java.util.Map;

/**
 * @author zhangxin
 * @date 2020/9/27
 */
public class HashMapTest {

    public static void main(String[] args) {
        HashMap<String, Object> params = new HashMap<>(2);
        params.put(null, 1);



        HashMap<Student, Object> studentHashMap = new HashMap<>(2);

        studentHashMap.put(new Student("tom", 1), null);
        studentHashMap.put(new Student("tom", 2), null);
        studentHashMap.put(new Student("tom", 3), null);
        studentHashMap.put(new Student("tom", 4), null);
        studentHashMap.put(new Student("tom", 5), null);
        studentHashMap.put(new Student("tom", 6), null);
        studentHashMap.put(new Student("tom", 7), null);
        studentHashMap.put(new Student("tom", 8), null);
        studentHashMap.put(new Student("tom", 9), null);
        studentHashMap.put(new Student("tom", 10), null);
        studentHashMap.put(new Student("tom", 11), null);
        studentHashMap.put(new Student("tom", 22), null);
    }
    @Test
    public void t() {
        System.out.println(1<<30);
        System.out.println(1<<31);
        System.out.println(1<<32);
        System.out.println(1<<33);
    }
}
